package com.java1412.controller;

import com.java1412.service.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2023-07-20 11:40:45
 */
@RestController
public class HelloController {
    @Resource
    private HelloService helloService;

    @GetMapping(value = "/hi")
    public String hi(
            String name
    ) {
        System.out.println("ribbon");
        return helloService.hiService(name);// hiService方法中可以远程调用服务提供者中的接口
    }
}
